import request from '@/utils/request'

// 查询生产人信息列表
export function listInfo(query) {
  return request({
    url: '/producer/info/list',
    method: 'get',
    params: query
  })
}

// 删除生产人信息
export function delInfo(producerId) {
  return request({
    url: '/producer/info/' + producerId,
    method: 'delete'
  })
}

// 状态修改
export function changeStatus(producerId, status) {
  const data = {
    producerId,
    status
  }
  return request({
    url: '/producer/info/updateProducerStatus',
    method: 'put',
    data: data
  })
}
